package com.hua.Thread.countlatch;

/**
 * @author: _hua
 * @created: 2019/3/3.
 * @updater:
 * @description:
 */

/**
 * CountDownLatch的伪代码
 *
 * Main thread start
 * Create CountDownLatch for N threads
 * Create and start N threads
 * Main thead wait on latch
 * N threads completes there tasks are returns
 * Main thread resume execution
 *
 */
public class Main {
    public static void main(String[] args)
    {
        boolean result = false;
        try {
            result = ApplicationStartupUtil.checkExternalServices();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("External services validation completed !! Result was :: "+ result);
    }
}